package com.ruoyi.td.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ThingModelMessage {

    /**
     * 设备ID
     */
    private String deviceId;

    /**
     * 所属产品
     */
    private String productKey;

    /**
     * 设备名称
     */
    private String deviceName;

    /**
     * 所属用户组
     */
    private String groupId;

    /**
     * 所属用户
     */
    private String uid;

    /**
     * 属性标识符
     */
    private String identifier;

    /**
     * 上报数据
     */
    private Object data;

    /**
     * 时间戳，设备上的事件或数据产生的本地时间
     */
    private   Long occurred;

    /**
     * 上报时间
     */
    private Long time;

    public ThingModelMessage(String deviceId, String productKey, String deviceName, String groupId, String uid,Long occurred, Long time) {
        this.deviceId = deviceId;
        this.productKey = productKey;
        this.deviceName = deviceName;
        this.groupId = groupId;
        this.uid = uid;
        this.time = time;
        this.occurred = occurred;
    }
}
